package com.hdax.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 角色表
 *管理员,人事,财务,员工
 *
 * @author Aizen
 * @date 2022/05/03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Component
public class Role {

    /**
     * id
     */
    private Integer id;
    /**
     * 角色(code)
     */
    private String role;
    /**
     * 描述
     */
    private String description;

    /**
     * 该角色对应的工资
     */
    private String basepay;

    /**
     * 权限列表
     */
    private List<Permission> permissionList;

    /**
     * 部门id
     */
    private Integer departmentId;
    private Department department;
    private String name;
}
